<%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-10
  Time: 8:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>管理员用户主页</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        ul li {
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        .container {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.22);
            position: relative;
            overflow: hidden;
            width: 768px;
            max-width: 100%;
            min-height: 480px;
        }
    </style>
</head>
<body>
<h3 style="margin-left: 10px">用戶名:${user.username}</h3>
<a href="/index.jsp" style="float: left;color: #7B68EE;margin-left: 10px" id="exitLogin">退出登录</a><br>
<a href="/home/user/changeMyMessage.jsp" style="display: block;background-color: orange;width: 8%;text-align: center;margin-top: 10px;margin-left: 10px">修改我的信息</a>
<div style="border: 1px solid red;width: 500px;margin: 0 auto" class="container">
    <ul>
        <li style="width: 100%;padding: 20px;height: 30%; text-align: center">
            <a href="/home/admin/user.jsp" style="color: #ff4b2b">用户管理</a>
        </li>
        <li style="width: 100%;padding: 20px;height: 30%;text-align: center">
            <a href="/home/admin/card.jsp" style="color: #ff4b2b">名片管理</a>
        </li>
        <li style="width: 100%;padding: 20px;height: 30%; text-align: center">
            <a href="/home/admin/recycle.jsp" style="color: #ff4b2b">查看回收站</a>
        </li>
    </ul>
</div>
</body>
<script>
    let exit = document.getElementById("exitLogin");
    exit.addEventListener("click",function (e){
        let a = confirm("确定要退出吗?");
        if(a == false){
            e.preventDefault();
        }
    })
</script>
</html>
